#pragma once

#include "GEnginePCH.h"

class Model
{
public:
	Model(void);
	Model( char *filename );
	~Model(void);
	int LoadModel( char *filename );
	void DeleteModel(void);
	void Render();
	void invalidateDeviceObjects(void);
	LPD3DXMESH getMesh(void);
	float GetLowestPoint(void);
	float GetHighestPoint(void);
	void SetMinBounds(const D3DXVECTOR3& val);
	void SetMaxBounds(const D3DXVECTOR3& val);
public:
	D3DXVECTOR3 minB, maxB; //Bounds
private:
	LPD3DXMESH mesh;
	D3DMATERIAL9* materials;
	LPDIRECT3DTEXTURE9* textures;
	DWORD material_count;
	
};
